#ifndef MUSICSLIDER_H
#define MUSICSLIDER_H

#include <QWidget>

namespace Ui {
class MusicSlider;
}

class MusicSlider : public QWidget
{
    Q_OBJECT

public:
    explicit MusicSlider(QWidget *parent = nullptr);
    void setStep(float be);
    ~MusicSlider();
protected:
    void mouseMoveEvent(QMouseEvent *event);
    void mousePressEvent(QMouseEvent* event);
    void mouseReleaseEvent(QMouseEvent* event);
    void movesilder();
signals:
    void SetMusicSliderposition(float);
private:
    Ui::MusicSlider *ui;
    int currentpos;
    int maxwidth;
};

#endif // MUSICSLIDER_H
